package com.fs.controller.vo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ApiModel("user对象")
@Data
@NoArgsConstructor
public class ReqCreateUser {
    @ApiModelProperty("用户昵称")
    @NotNull(message="昵称不能为空")
    @NotEmpty(message="昵称不能为空")
    private String name;
    @ApiModelProperty("登录名")
    @NotNull(message="登录名不能为空")
    @NotEmpty(message="登录名不能为空")
    private String loginName;
    @ApiModelProperty("密码")
    @NotNull(message="密码不能为空")
    @NotEmpty(message="密码不能为空")
    private String password;
}
